<form class="e-form">
    <div class="row">
        <!-- str:表单区域 -->
        <input type="hidden" id="id" name="id" value="${object.id}" />
        <input type="hidden" id="input-status" name="status" value="${object.status}" />
        <div class="col-12">
            <div class="form-group row">
                <label class="col-form-label col-md-2 col-4" for="receiver">
                    <span class="required">*</span>
                    收信人：
                </label>
                <div class="col-md-9 col-8">
                    <select id="receiver" name="receiver" class="form-control" multiple required>
                        @if(object.receiverUserList != null){
                            @for(user in object.receiverUserList){
                                <option value="${user.id}" selected>${user.username}</option>
                            @}
                        @}
                    </select>
                </div>
            </div>
        </div>
        <div class="col-12">
            <div class="form-group row">
                <label class="col-form-label col-md-2 col-4" for="input-title">
                    <span class="required">*</span>
                    主题：
                </label>
                <div class="col-md-9 col-8">
                    <input type="text" class="form-control" id="input-title" name="title" required value="${object.title}">
                </div>
            </div>
        </div>
        <div class="col-12">
            <div class="form-group row">
                <label class="col-form-label col-md-2 col-4">
                    重要消息：
                </label>
                <div class="col-md-1 col-8">
                    <span class="e-switch e-switch--sm e-switch--icon">
                        <label>
                            <input type="checkbox"
                                   @if(MessageConst.IMPORTANT_YES == object.important){
                                   checked="checked"
                                   @}
                                   name="important" value="${MessageConst.IMPORTANT_YES}">
                            <span></span>
                        </label>
                    </span>
                </div>
                <label class="col-form-label col-md-2 col-4">
                    <span class="required">*</span>
                    消息类型：
                </label>
                <div class="col-md-7 col-8">
                    <div class="radio-dict" data-dict-type="messageType" data-value="${object.type}" data-name="type" data-required="true"></div>
                </div>
            </div>
        </div>

        <div class="col-12">
            <div class="form-group row">
                <label class="col-form-label col-md-2 col-4" for="content">
                    内容：
                </label>
                <div class="col-md-9 col-8">
                    <textarea class="form-control summernote" id="content" name="content" style="" placeholder="">${object.content}</textarea>
                </div>
            </div>
        </div>
        <!-- end:表单区域 -->
    </div>
    <div class="e-form-actions text-center">
        <#btn:save permission="sys:message:save"/>
        <#btn permission="sys:message:save" type="info" name="保存并发送" icon="la la-send" click="SysMessageInput.saveAndSend(this)"/>
    </div>
</form>